<?php
    $data = $this->data;
   
?>
<h1>Manage Admin</h1>
	<form name="frmManAdm" method="post" enctype="multipart/form-data">
		<div class="add-del">
			<input type="button" value="ADD" onclick="onAdd('/admin/manager/add');" />&nbsp;
			<input type="button" value="DELETE" name="delAll" onclick="onDelAll('/admin/manager/delete/id/');" />
		</div>
		
		<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<th>Nbrs</th>
				<th>User name</th>
				<th>Full name</th>
                <th>Email</th>
				<th colspan="2">Action</th>
				<th><input type="checkbox" name="chkMasCheck" value="" onclick="onCheckAll();" /></th>
			</tr>
			<?php $i=1; foreach($data as $lsadm): ?>
			<tr>
				<td align="center"><?php echo $i;  ?></td>
				<td><?php echo $lsadm['adm_usrname']; ?></td>
				<td><?php echo $lsadm['adm_fullname']; ?></td>
                <td><?php echo $lsadm['adm_email']; ?></td>
				<td align="center"><a href="<?php echo $this->baseUrl(); ?>/admin/manager/edit/id/<?php echo $lsadm['adm_id'];?>"><img class="change" src="<?php echo $this->baseUrl(); ?>/app/templates/admin/images/edit.png" alt="edit" title="edit" /></a></td>
				<td align="center"><a href="javascript:void(0)" onclick="onDel('/admin/manager/delete/id/<?php echo $lsadm['adm_id'];?>')"><img class="change" src="<?php echo $this->baseUrl(); ?>/app/templates/admin/images/del.png" alt="del" title="delete" /></a></td>
				<td align="center"><input type="checkbox" name="chk" value="<?php echo $lsadm['adm_id'];?>" /></td>
			</tr>
			<?php $i++; endforeach; ?>
		</table>
		<div class="paging">paging</div>
		<div class="download"><a href="">download this page</a></div>
	</form>